package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.billpool.Detail.RetAtsB306PoolAmountQryDetail;
import com.fingard.xml.XmlTextWriter;

public class RetAtsB306PoolAmountQry extends RetAtsBase{
    public String respCode;
    public String respInfo;
    //总记录数
    public String tatalcount;

    public RetAtsB306PoolAmountQry(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();
    }

    public void writeRetDetail(RetAtsB306PoolAmountQryDetail p_retDetail) throws Exception {
        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("RespCode", p_retDetail.RespCode);
        retXmlWriter.writeElementString("RespInfo", p_retDetail.RespInfo);

        retXmlWriter.writeElementString("Custname", p_retDetail.Custname);
        retXmlWriter.writeElementString("Contractno", p_retDetail.Contractno);
        retXmlWriter.writeElementString("Contractdate", p_retDetail.Contractdate);
        retXmlWriter.writeElementString("Signorgno", p_retDetail.Signorgno);
        retXmlWriter.writeElementString("Signorgname", p_retDetail.Signorgname);
        retXmlWriter.writeElementString("Signdate", p_retDetail.Signdate);
        retXmlWriter.writeElementString("Billpoolstatus", p_retDetail.Billpoolstatus);
        retXmlWriter.writeElementString("Bailacctno", p_retDetail.Bailacctno);
        retXmlWriter.writeElementString("Grpcid", p_retDetail.Grpcid);
        retXmlWriter.writeElementString("Grpbillpoolno", p_retDetail.Grpbillpoolno);
        retXmlWriter.writeElementString("Grpname", p_retDetail.Grpname);
        retXmlWriter.writeElementString("Joingrpdate", p_retDetail.Joingrpdate);
        retXmlWriter.writeElementString("Billremains", p_retDetail.Billremains);
        retXmlWriter.writeElementString("Bailremains", p_retDetail.Bailremains);
        retXmlWriter.writeElementString("Billpoollimit", p_retDetail.Billpoollimit);
        retXmlWriter.writeElementString("Lowrisklimit", p_retDetail.Lowrisklimit);
        retXmlWriter.writeElementString("Inlowrisklimit", p_retDetail.Inlowrisklimit);
        retXmlWriter.writeElementString("Usedlimit", p_retDetail.Usedlimit);
        retXmlWriter.writeElementString("Usedlowrisklimit", p_retDetail.Usedlowrisklimit);
        retXmlWriter.writeElementString("Usedinlowrisklimit", p_retDetail.Usedinlowrisklimit);
        retXmlWriter.writeElementString("PoolTopLimit", p_retDetail.PoolTopLimit);
        retXmlWriter.writeElementString("AmountState", p_retDetail.AmountState);
        retXmlWriter.writeElementString("HostAccno", p_retDetail.HostAccno);
        retXmlWriter.writeElementString("Availablelimit", p_retDetail.Availablelimit);
        retXmlWriter.writeElementString("GuarRate", p_retDetail.GuarRate);
        retXmlWriter.writeElementString("SuperviseQuota", p_retDetail.SuperviseQuota);
        retXmlWriter.writeElementString("CustId", p_retDetail.CustId);
        retXmlWriter.writeEndElement();
    }


    public void writeBeforeDetail() throws Exception {
        retXmlWriter.writeElementString("RespCode", respCode);
        retXmlWriter.writeElementString("RespInfo", respInfo);
        retXmlWriter.writeElementString("Tatalcount", tatalcount);
    }

    public void writeAfterDetail() throws Exception {
        writeEnd();// 写结束
    }
}
